package springboot.job;

import lombok.extern.slf4j.Slf4j;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.quartz.TriggerKey;

@Slf4j
public class UserJob implements Job {
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        TriggerKey key = jobExecutionContext.getTrigger().getKey();
        log.info("触发器名称:{},所属的组:{},welcome to use quartz",key.getName(),key.getGroup());
    }
}
